	<div id="mainContent">
	<script type="text/javascript" src="scripts/modifyProfilValidation.js"></script>
		<div class="content">
			<h3>MON PROFIL :</h3>
			<div class="profil">
				<div id="infos">
				
				</div>
				<form name="MODIFYPROFIL" method="post" enctype="multipart/form-data" onsubmit="javascript:modifyprofil();">
				<div class="picture">
					<img src="photos/<?php echo (file_exists("photos/".$params['user']->getId().".jpg")) ? $params['user']->getId().".jpg" : "noimage.png";?>" alt=""/>
					<input type="file" name="PHOTO" value="Changer ma photo"/>
				</div>
				<table>
					<tr>
						<th>Nom : </th>
						<td><?php echo $params['user']->getNom(); ?></td>
					</tr>
					<tr>
						<th>Prénom : </th>
						<td><?php echo $params['user']->getPrenom(); ?></td>
					</tr>
					<tr>
						<th>Pseudo : </th>
						<td>
							<span><?php echo $params['user']->getPseudo(); ?></span>
							<input type="text" name="PSEUDO" value="<?php echo $params['user']->getPseudo(); ?>" class="invisible"/>
							<input type="hidden" name="PSEUDOOLD" value="<?php echo $params['user']->getPseudo(); ?>"/>
						</td>
						<td class="edit"></td>
						<td class="error"></td>
					</tr>
					<tr>
						<th>Adresse email : </th>
						<td><?php echo $params['user']->getMailAdress(); ?></td>
					</tr>
					<!-- MODIFICATION MOT DE PASSE -->
					<tr>
						<th>Mot de passe :</th>
						<td>
							<span>******</span>
							<input type="password" name="PASSWORD1" placeholder="Nouveau mot de passe" class="invisible"/><br/>
							<input type="password" name="PASSWORD2" placeholder="Confirmation du mot de passe" class="invisible"/>	
							<input type="hidden" name="OLDPASSWORD" value="******"/>
						</td>
						<td class="edit"></td>
						<td class="error"></td>
					</tr>
					<!-- AFFICHAGE DATE DE NAISSANCE -->
					<tr>
						<th>Date de naissance :</th>
						<td><span><?php echo $params['user']->getBirthDate(); ?></span>
							<select name="JOUR" class="invisible">
								<option value="default">Jour :</option>
								<?php 
									for($i=1;$i<=31;$i++)
										echo '<option value="'.$i.'">'.$i.'</option>';
								?>
							</select>
							<select name="MOIS" class="invisible">
								<option value="default">Mois :</option>
								<option value="1">Janvier</option>
								<option value="2">Février</option>
								<option value="3">Mars</option>
								<option value="4">Avril</option>
								<option value="5">Mai</option>
								<option value="6">Juin</option>
								<option value="7">Juillet</option>
								<option value="8">Août</option>
								<option value="9">Septembre</option>
								<option value="10">Octobre</option>
								<option value="11">Novembre</option>
								<option value="12">Décembre</option>
							</select>
							<select name="ANNEE" class="invisible">
								<option value="default">Annee :</option>
								<?php 
									$current_year = date('Y');
									for($i=$current_year;$i>$current_year-60; $i--)
										echo '<option value="'.$i.'">'.$i.'</option>';
								?>
							</select>
						
							<input type="hidden" name="BIRTHDATEOLD" value="<?php echo $params['user']->getBirthDate(); ?>"/>
						</td>
						<td class="edit"></td>
						<td class="error"></td>
					</tr>
					<!-- MODIFICATION FORMATION -->
					<tr>
						<th>Ma formation actuelle :</th>
						<td><span><?php echo "Promotion ".$params['user']->getAnnee().
						", option ";
						$formation = $params['user']->getFormation(); 
						echo $formation['LIBFORMATION']; ?></span>
						<select name="PROMOTION" class="invisible">
									<?php 
									echo '<option value="default">Promo</option>';
									for($i=$current_year+3;$i>$current_year-50; $i--)
										echo '<option value="'.$i.'">'.$i.'</option>';
									?>
						</select>
						<select name="FORMATION" class="invisible">
									<?php 
									echo '<option value="default">Formation</option>';
									foreach($params['formations'] as $formation) {
										echo '<option value="'.$formation['IDFORMATION'].'">'.$formation['LIBFORMATION'].'</option>';
									}?>
						</select>
						<input type="hidden" name="PROMOOLD" value="<?php echo "Promotion ".$params['user']->getAnnee().
								", option ";
								$formation = $params['user']->getFormation(); 
								echo $formation['LIBFORMATION']; ?>"/>
						</td>
						<td class="edit"></td>
						<td class="error"></td>
						
					</tr>
				</table>
				<input type="submit" name="MODIFY" value="Enregistrer les modifications"/>
				</form>
			</div>
		</div>
	</div>